import request from '@/utils/request'

// 查询老师信息列表
export function teacherlist(query) {
    return request({
        url: '/system/user/list',
        method: 'get',
        params: query
    })
}

// 新增老师信息
export function teacherAdd(query) {
    return request({
        url: '/system/user',
        method: 'post',
        data: query
    })
}

// 修改老师信息
export function teacherEdit(query) {
    return request({
        url: '/system/user',
        method: 'put',
        data: query
    })
}

// 重置密码
export function userResetPwd(query) {
    return request({
        url: '/system/user/resetPwd',
        method: 'put',
        data: query
    })
}

// 删除老师信息
export function teacherDel(query) {
    return request({
        url: '/system/user/' + query,
        method: 'delete',
    })
}

// 是否开启扫描
export function scanStatus(query) {
    return request({
        url: '/scan/status',
        method: 'get',
        params: query

    })
}
